package com.chillis.standings.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import com.chillis.standings.R;

public class StarterActivity extends Activity implements View.OnClickListener {
   @Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);

      setContentView(R.layout.view_starter);

      findViewById(R.id.button_edit_mode).setOnClickListener(this);
      findViewById(R.id.button_show_mode).setOnClickListener(this);
   }

   @Override
   public void onClick(View view) {
      if (view.getId() == R.id.button_edit_mode) {
         onEditModeClicked();
      } else if (view.getId() == R.id.button_show_mode) {
         onShowModeClicked();
      }
   }

   private void onEditModeClicked() {
      startActivity(new Intent(StarterActivity.this, SettingsActivity.class));
   }

   private void onShowModeClicked() {
      Toast.makeText(StarterActivity.this, R.string.not_implemented, Toast.LENGTH_LONG).show();
   }
}
